﻿using System;
using System.Collections.Generic;
using IsolationLevel = System.Transactions.IsolationLevel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BDShop.DAL;
using BDShop.Entities;

namespace BDShop.Business
{
    public class ProductCategoryService
    {
        public static List<ProductCategory> GetListProductCategoryCacheModel()
        {
            List<ProductCategory> lstProductCategory = new List<ProductCategory>();
            using (var context = new BDShopEntities(IsolationLevel.ReadUncommitted))
            {
                lstProductCategory = context.ProductCategories.ToList();
            }

            return lstProductCategory;
        }
    }
}
